CREATE EXTERNAL TABLE jms_dwd.`dwd_task_instance_dt` (
  `task_id` string ,
  `dag_id` string ,
  `run_id` string ,
  `map_index` string  ,
  `start_date` string ,
  `end_date` string  ,
  `duration` string ,
  `state` string,
  `try_number` string ,
  `max_tries` string ,
  `hostname` string ,
  `unixname` string ,
  `job_id` string ,
  `pool` string ,
  `pool_slots` string ,
  `queue` string ,
  `priority_weight` string ,
  `operator` string ,
  `queued_dttm` string ,
  `queued_by_job_id` string ,
  `pid` string ,
  `executor_config` string,
  `updated_at` string  ,
  `external_executor_id` string ,
  `trigger_id` string ,
  `trigger_timeout` string ,
  `next_method` string ,
  `next_kwargs` string
) COMMENT '登录日志表'
PARTITIONED BY (
  `dt` string COMMENT '创建日期 (yyyy-MM-dd)')
stored as parquet
location '/dw/hive/jms_dwd.db/external/dwd_task_instance_dt'